package com.wing.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.common.utils.JsonResult;
import com.wing.enterprise.product.model.response.ProductPackLabelVO;
import com.wing.order.model.entity.OrderDeliveryLabel;
import com.wing.order.model.request.OrderDeliveryLabelForm;
import com.wing.order.model.response.OrderDeliveryLabelVO;
import com.wing.warehouse.model.response.PalletBoxListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 签收单扫描的包装条码-Service
 *
 * @author
 */
public interface OrderDeliveryLabelService extends IService<OrderDeliveryLabel> {

    /**
     * 添加
     *
     * @param orderDeliveryLabelForm
     * @return
     */
    int add(OrderDeliveryLabelForm orderDeliveryLabelForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<OrderDeliveryLabelVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<OrderDeliveryLabelVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    OrderDeliveryLabelVO get4appById(Long id);

    JsonResult<ProductPackLabelVO> getPackLabel(Long signId, String labelCode);

    List<OrderDeliveryLabelVO> getDeliveryLabel(Long signId, Long boxId,String queryFlag);
    List<OrderDeliveryLabelVO> getDeliveryLabel(Long signId, Long boxId,String queryFlag,Long signDetailId);

    void inventoryInSubmit(List<OrderDeliveryLabel> list);

    List<PalletBoxListVO> getBoxBySignId(Long signId,Long signDetailId);




}
